function curryingCheck(reg) {
    return function (txt) {
        return reg.test(txt)
    }
}

// 手机号验证
var PhoneReg = curryingCheck(/^1[3456789]\d{9}$/);